package com.jic.product.mapper;

import com.jic.product.entity.CategoryTreeNodeProduct;
import com.jic.product.manage.request.CategoryTreeNodeProductRequest;
import com.jic.product.manage.response.CategoryTreeNodeProductResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 类目聚合商品表
 * @author : 
 * @email : 
 * @since : 2020-01-10 07:03:01
 * @version : v1.0.0
 */
@Mapper
public interface  CategoryTreeNodeProductMapper {

    long insert(CategoryTreeNodeProduct categoryTreeNodeProduct);

    long delete(Long id);

    CategoryTreeNodeProduct queryByPrimaryKey(Long id);

    List<CategoryTreeNodeProduct> query(CategoryTreeNodeProduct categoryTreeNodeProduct);

    List<CategoryTreeNodeProductResponse> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("categoryTreeNodeProductRequest") CategoryTreeNodeProductRequest categoryTreeNodeProductRequest);

    long queryPageCount(CategoryTreeNodeProductRequest categoryTreeNodeProductRequest);

    List<Long> queryProductId(CategoryTreeNodeProduct categoryTreeNodeProduct);
}